﻿import QtQuick 2.3
import QtQuick.Controls 1.2
import QmlObjectTest 1.0
import QtQuick.Dialogs 1.2
import QtQuick.Window 2.2
import QtQuick.Controls.Styles 1.4
import QtQuick.Controls.Private 1.0
import QtMultimedia 5.5

import MainWindow 1.0
import UpMainWindow 1.0

import "qml/"

//import MyCommon 1.0
//portrait
//landscape

Item {
    id: window
    anchors.fill: parent

    MainWindow{
        id: mainWindow

        SequentialAnimation on frame {
            NumberAnimation{ to: 200; duration: 5000; easing.type: Easing.Linear }
            NumberAnimation{ to: 0; duration: 5000; easing.type: Easing.Linear }
            loops: Animation.Infinite
            running: true
        }
    }

        UpMainWindow{
            id: upMainWindow

            SequentialAnimation on frame {
                NumberAnimation{ to: 200; duration: 5000; easing.type: Easing.Linear }
                NumberAnimation{ to: 0; duration: 5000; easing.type: Easing.Linear }
                loops: Animation.Infinite
                running: true
            }
        }

        Rectangle {
            z: 0
            color: Qt.rgba(1, 1, 1, 0.7)
            radius: 10
            border.width: 1
            border.color: "white"
            anchors.fill: label
            anchors.margins: -10
        }

        Text {
            z: 2
            id: label
            color: "black"
            wrapMode: Text.WordWrap
            text: "========OPENGL 和 QML 混合编程========"
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
            font.family: "微软雅黑"
        }

}

